﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZDMHelper
{
    /// <summary>
    /// 控制标高数据
    /// </summary>
    class ElevationData
    {
        #region Variable
        private string symbol;
        private double mileage;
        private double controlElvation;
        private double baseElvation;
        private Flag flagType;
        #endregion

        #region Construction
        public ElevationData()
        {
            this.symbol = "";
            this.mileage = 0.0;
            this.controlElvation = 0.0;
            this.baseElvation = 0.0;
            this.flagType = Flag.Null;
        }

        /// <summary>
        /// 控制标高数据
        /// </summary>
        /// <param name="symbol">冠号</param>
        /// <param name="mileage">里程</param>
        /// <param name="controlElvation">控制标高</param>
        /// <param name="baseElvation">路面标高或通航、百年水位等</param>
        /// <param name="flagType">插旗类型：道路或河流</param>
        public ElevationData(string symbol, double mileage, double controlElvation, double baseElvation, Flag flagType)
        {
            this.symbol = symbol;
            this.mileage = mileage;
            this.controlElvation = controlElvation;
            this.baseElvation = baseElvation;
            this.flagType = flagType;
        }
        #endregion

        #region Properties
        public string Symbol
        {
            set
            {
                this.symbol = value;
            }
            get
            {
                return this.symbol;
            }
        }

        public double Mileage
        {
            set
            {
                this.mileage = value;
            }
            get
            {
                return this.mileage;
            }
        }

        public double ControlElvation
        {
            set
            {
                this.controlElvation = value;
            }
            get
            {
                return this.controlElvation;
            }
        }

        public double BaseElvation
        {
            set
            {
                this.baseElvation = value;
            }
            get
            {
                return this.baseElvation;
            }
        }

        public Flag FlagType
        {
            set
            {
                this.flagType = value;
            }
            get
            {
                return this.flagType;
            }
        }
        #endregion
    }
    /// <summary>
    /// 插旗类型
    /// </summary>
    enum Flag
    {
        Null = 0,
        Load = 1,
        Rivers = 2
    }
}
